
<template>
  <div class="container">
    <!-- Your main content goes here -->
     <RouterView />
  </div>
  <!-- <div class="tab-bar">
    <div 
     @click="router.push('/home');"
    class="tab-item">首页</div>
    <div 
      @click="router.push('/category');"
    class="tab-item">分类</div>
    <div
    @click="router.push('/discover');"
    class="tab-item">发现</div>
    <div 
    @click="router.push('/my');"
    class="tab-item">我的</div>
  </div> -->
</template>

<script setup>
import { ref, onMounted } from 'vue';
import axios from 'axios';
import { useRouter } from 'vue-router';
  const shuzu=ref(['/login']);
  const router = useRouter();

const imageUrl = ref('');
const error = ref('');

function fetchImage() {
  // Your fetch image logic here
}

onMounted(fetchImage);
</script>

<style scoped>
.container {
  /* Your container styles here */
  width: 100%;
}

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #f8f8f8;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #ddd;
}

.tab-item {
  flex: 1;
  text-align: center;
  line-height: 50px;
  color: #333;
  cursor: pointer;
}

.tab-item:hover {
  background-color: #ddd;
}
</style>
